<!-- 列表 -->
<template>
	<scroll-view class="scroll-view" scroll-y="true">
		<view class="list">
			<view class="list-item" v-for="value in 5" :key="value">
				<view class="content">
					<image class="pic" src="/pagesB-goods-manage/static/images/will-delete/1.png" mode="aspectFill">
					</image>
					<view class="info">
						<text class="name">红蚂蚁黄蚂蚁黑蚂蚁一窝端</text>
						<view class="price-box">
							<text class="now">¥5.45</text>
							<text class="old">¥8.90</text>
						</view>
						<view class="operation">
							<text class="count">库存量1220</text>
							<button class="btn btn-transition-scale9">上架</button>
						</view>
					</view>
				</view>
				<view class="btn-group">
					<button class="btn btn-transition-scale9">删除</button>
					<button class="btn active btn-transition-scale9">编辑</button>
				</view>
			</view>
		</view>
	</scroll-view>
</template>

<script setup>
</script>

<style lang="scss" scoped>
	.scroll-view {
		height: 100%;
	}

	.list {
		padding: 1rpx 25rpx 0;

		&-item {
			background-color: white;
			border-radius: 20rpx;
			padding-left: 22rpx;
			margin-top: 20rpx;

			.content {
				display: flex;
				padding: 24rpx 0 30rpx 0;
				border-bottom: 1rpx solid #E5E5E5;

				.pic {
					flex-shrink: 0;
					width: 200rpx;
					height: 200rpx;
					border-radius: 10rpx;
				}

				.info {
					flex-grow: 1;
					padding: 6rpx 18rpx 0 22rpx;

					.name {
						font-weight: bold;
						font-size: 28rpx;
						color: #222222;
						line-height: 1.5;
					}

					.price-box {
						display: flex;
						align-items: center;
						margin-top: 4rpx;

						.now {
							font-weight: bold;
							font-size: 32rpx;
							color: #FE3333;
							line-height: 1.5;
						}

						.old {
							font-size: 24rpx;
							color: #999999;
							line-height: 1.5;
							margin-left: 12rpx;
						}
					}

					.operation {
						display: flex;
						justify-content: space-between;
						align-items: center;
						margin-top: 60rpx;

						.count {
							font-size: 24rpx;
							color: #999999;
						}

						.btn {
							width: 126rpx;
							height: 50rpx;
							font-size: 26rpx;
							color: #FFFFFF;
							text-align: center;
							line-height: 50rpx;
							background: linear-gradient(to right, #FE3333, #FF651E);
							border-radius: 25rpx;
						}
					}
				}
			}

			.btn-group {
				display: flex;
				justify-content: flex-end;
				padding: 18rpx 22rpx;

				.btn {
					width: 166rpx;
					height: 60rpx;
					font-size: 24rpx;
					color: #222222;
					text-align: center;
					line-height: 60rpx;
					border-radius: 30rpx;
					background-color: transparent;

					&::after {
						display: block;
						border: 1px solid #E5E5E5;
						border-radius: 100px;
					}

					&.active {
						color: #FA2C19;

						&::after {
							border-color: #FA2C19;
						}
					}

					&+.btn {
						margin-left: 20rpx;
					}
				}
			}
		}
	}
</style>